package com.knight.study.patterns.tujie.factory;

/**
 * @Author knight
 * @Date 2024/9/5 19:02
 */

public abstract class Factory {
    public final Product create(String owner) {
        Product p = createProduct(owner);
        registerProduct(p);
        return p;
    }

    protected abstract Product createProduct(String owner);
    protected abstract void registerProduct(Product product);
}
